package cn.yuanqiao.archive.shuzihua.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.SecurityUtils;
import cn.yuanqiao.common.utils.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 档案登记记录对象 A001_YQ_ARCHIVEENROLL
 * 
 * @author xy
 * @date 2024-09-12
 */
public class ArchiveEnroll extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String tableName;
    private final String BIGTABLENAME = "_YQ_ARCHIVEENROLL";

    public ArchiveEnroll() {
        String tenantCode = SecurityUtils.getTenantCode();
        if (StringUtils.isEmpty(tenantCode)) {
            throw new ServiceException("tenantCode is null");
        } else {
            this.tableName = tenantCode.toUpperCase() + BIGTABLENAME;
        }
    }
    /** id */
//    @Excel(name = "id")
    private Long id;
    /** 移交人 */
    @Excel(name = "档案标题")
    private String title;

    /** 移交单位 */
    @Excel(name = "移交单位")
    private String transferName;
    /** 移交人 */
    @Excel(name = "移交人")
    private String userName;
    /** 门类 */
    private Long categoryId;
    /** 门类 */
    @Excel(name = "档案门类")
    private String categoryName;
    /** 介质 */
    @Excel(name = "介质")
    private String medium;

    /** 条目数目 */
    @Excel(name = "条目数量")
    private Integer entriesNum;


    private Integer edReceptionTime;


    /** 操作数目 */
    @Excel(name = "操作数量")
    private Integer operationsNum;
    /** 接收时间 */
    @Excel(name = "接收时间")
    private Integer receptionTime;


    /** 移交单位 */
    private Long transferUnit;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 创建人 */
//    @Excel(name = "创建人")
    private Long createId;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setMedium(String medium) 
    {
        this.medium = medium;
    }

    public String getMedium() 
    {
        return medium;
    }
    public void setEntriesNum(Integer entriesNum) 
    {
        this.entriesNum = entriesNum;
    }

    public Integer getEntriesNum() 
    {
        return entriesNum;
    }
    public void setOperationsNum(Integer operationsNum) 
    {
        this.operationsNum = operationsNum;
    }

    public Integer getOperationsNum() 
    {
        return operationsNum;
    }
    public void setReceptionTime(Integer receptionTime)
    {
        this.receptionTime = receptionTime;
    }

    public Integer getReceptionTime()
    {
        return receptionTime;
    }
    public void setTransferUnit(Long transferUnit) 
    {
        this.transferUnit = transferUnit;
    }

    public Long getTransferUnit() 
    {
        return transferUnit;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getTransferName() {
        return transferName;
    }

    public void setTransferName(String transferName) {
        this.transferName = transferName;
    }

    public Integer getEdReceptionTime() {
        return edReceptionTime;
    }

    public void setEdReceptionTime(Integer edReceptionTime) {
        this.edReceptionTime = edReceptionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("categoryId", getCategoryId())
            .append("medium", getMedium())
            .append("entriesNum", getEntriesNum())
            .append("operationsNum", getOperationsNum())
            .append("receptionTime", getReceptionTime())
            .append("transferUnit", getTransferUnit())
            .append("notes", getNotes())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
